﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreateNotice.aspx.cs" Inherits="CreateNotice" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>创建通知</title>
    <base target="_self"/>
    <script language="javascript" type="text/javascript" src="Js/jquery-1.3.1.min.js"></script>
    <link href="css/default.css" rel="stylesheet" type="text/css" />
    
    <script language="javascript" type="text/javascript">

        $(document).ready(SetInputClass);
　　　　
　　　　function SetInputClass() {
            $(":text").hover
            (
                  function() {
                      $(this).addClass("texthover");
                  },
                  function() {
                      $(this).removeClass("texthover");
                  } 
             );
             
             $(":submit").addClass("button");
         }
    </script>
</head>
<body  style="background-color:White;">
    <form id="form1" runat="server">
        <div >
            <div runat="server" id="divResult" class="divResult" style="display:block;">
                <asp:Label ID="OperationResult" CssClass="result" runat="server" Text=""></asp:Label>
            </div>
            <asp:Panel ID="CreatePanel" runat="server" Width="100%">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px; height: 24px;">
                            &nbsp;&nbsp;消息类型：</td>
                        <td style="width: 400px;">
                            <%--<asp:DropDownList ID="CreatePublish_Type" runat="server" Width="200px" AutoPostBack="True"
                                OnSelectedIndexChanged="CreatePublish_Type_SelectedIndexChanged">
                                <asp:ListItem Value="0">公告</asp:ListItem>
                                <asp:ListItem Value="1">定向消息</asp:ListItem>
                            </asp:DropDownList>--%>
                            <asp:Label ID="labType" runat="server" Text=""></asp:Label>
                            </td>
                        <td style="width: 150px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <asp:Panel ID="user" runat="server" Visible="false">
                        <tr>
                            <td style="width: 120px; height: 24px;">
                                &nbsp;&nbsp;选择用户：</td>
                            <td colspan="2">
                                <asp:CheckBoxList ID="CheckUsers" runat="server" DataTextField="Display_Name" DataValueField="UID"
                                    RepeatColumns="8" Width="100%" RepeatLayout="flow">
                                </asp:CheckBoxList></td>
                        </tr>
                        <tr>
                            <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                            </td>
                        </tr>
                    </asp:Panel>
                    <tr>
                        <td style="height: 24px;">
                            &nbsp;&nbsp;消息标题：</td>
                        <td style="width: 400px;" colspan="2">
                            <asp:TextBox ID="CreateNotice_Title" runat="server" Width="99%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 24px;">
                            &nbsp;&nbsp;消息内容：</td>
                        <td colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <FCKeditorV2:FCKeditor ID="FCKeditorContent" runat="server" BasePath="fckeditor/"
                                Width="100%" Height="320px">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="tblfooter" colspan="3" align="right">
                            <asp:Button ID="EditSave" runat="server" Text="保存修改" Width="100px" OnClick="EditSave_Click"
                                ValidationGroup="Create" />
                            <asp:Button ID="CreateSave" runat="server" Text="保 存" Width="90px" OnClick="CreateSave_Click"
                                ValidationGroup="Create" />
                        <%-- <asp:Button ID="CreateBack" runat="server" Text="返 回" Width="90px" OnClientClick="javascript:self.opener=null; self.close();" />--%> 
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 1px; background-color: #F0F0F0;" colspan="3">
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    </form>
</body>
</html>
